package com.chexiehui.jc.mvp.car;

import com.chexiehui.jc.Constants;
import com.chexiehui.jc.base.BaseModel;
import com.chexiehui.jc.base.BaseView;
import com.chexiehui.jc.entity.CarSeriesInfo;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * @Description 新车发布列表
 * @Auth SongJun
 * @Date 2019/11/20 10:05
 **/
public interface NewCarListCovenant {

    interface View extends BaseView {
        void onGetListSuccess(BaseModel<List<CarSeriesInfo>> successResult);

        void onGetListFailure(BaseModel<Object> failureResult);

        String getDateStr();

    }

    interface Stores {
        @FormUrlEncoded
        @POST(Constants.URL_CAR_NEW_LIST)
        Observable<BaseModel<List<CarSeriesInfo>>> getList(
                @Field("date") String date
        );
    }

    interface Presenter {
        void getList();
    }

}